home *** CD-ROM | disk | FTP | other *** search
/ Aminet 3 / Aminet 3 - July 1994.iso / Aminet / dev / c / AmigaDate.readme < prev    next >
Text File  |  1994-06-27  |  1KB  |  45 lines

  1. Short: Outputs "(dd.mm.yy)" Useful in Makefiles
  2. Type: dev/c
  3. Uploader: too@cardhu.cs.hut.fi
  4. Author: Tomi Ollila <too@cardhu.cs.hut.fi>
  5.  
  6. This program Outputs SAS/C AMIGADATE and DICE COMMODORE_DATE style date string
  7. This is most useful in Makefiles, where one can define preprocessor strings.
  8.  
  9. GNUMakefile example:
  10.  
  11. #
  12. # Amigadate GNUMakefile example. (You must have amigadate compiled by now ;D)
  13. #
  14.  
  15. AMIGADATE=    $(shell amigadate)
  16.  
  17. MAKE=    gmake
  18. CC=    gcc
  19. CFLAGS=    -v -O2 -D__AMIGADATE__='"$(AMIGADATE)"'
  20. LFLAGS= -nostdlib -s
  21.  
  22.  
  23. AmigaDate: amigadate.c
  24.     $(CC) $(LFLAGS) -o $@ amigadate.c
  25.  
  26.  
  27. #EOF
  28.  
  29. This program is re-entrant and can be made resident. Perhaps the easiest way
  30. to do this is to enter `protect amigadate +H' but this may not work with
  31. future OSses.
  32.  
  33. Tomi Ollila
  34. too@cardhu.cs.hut.fi
  35.  
  36. ============================= Archive contents =============================
  37.  
  38. Original  Packed Ratio    Date     Time    Name
  39. -------- ------- ----- --------- --------  -------------
  40.      332     269 18.9% 31-Mar-94 18:49:46  AmigaDate
  41.      782     459 41.3% 31-Mar-94 18:49:30  AmigaDate.readme
  42.     4455    1261 71.6% 31-Mar-94 18:50:28  amigadate.c
  43. -------- ------- ----- --------- --------
  44.     5569    1989 64.2% 31-Mar-94 23:39:28   3 files
  45.